﻿using Model.CustomDataType;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Model
{
    public class Treatment: MarshalByRefObject
    {
        public static readonly int DANG_CHO_KHAM = 1;
        public static readonly int DANG_KHAM = 2;
        public static readonly int DA_KHAM = 3;
        public override object InitializeLifetimeService()
        {
            return null;
        }

        private int treatmentId;
        private int patientId;
        private CMDateTime dateOfTreatment;
        private float weight;
        private int treatmentStatusId;
        //Triệu chứng của bệnh nhân
        private string symptom;
        //Bác sĩ chẩn đoán bệnh
        private int diagnosisId;
        //Lời dặn của bác sĩ
        private string advice;
        //Ngày tái khám
        private CMDateTime dateOfReTreatment;
        // Số ngày dùng thuốc
        private int dayOfUsingMedicine;
        private int workerId;
        private int treatmentCost;
        private int medicineCost;
        private short payStatus;

        public Treatment() { }
        public Treatment(int id, int paId, CMDateTime date)
        {
            this.treatmentId = id;
            this.patientId = paId;
            this.dateOfTreatment = date;
        }
        
        public int getTreatmentId()
        {
            return treatmentId;
        }
        public void setTreatmentId(int id)
        {
            this.treatmentId = id;
        }

        public int getPatientId()
        {
            return patientId;
        }
        public void setPatientId(int id)
        {
            this.patientId = id;
        }

        public CMDateTime getDateOfTreatment()
        {
            return dateOfTreatment;
        }
        public void setDateOfTreatment(CMDateTime date)
        {
            this.dateOfTreatment = date;
        }

        public float getWeight()
        {
            return weight;
        }
        public void setWeight(float weight)
        {
            this.weight = weight;
        }

        public int getTreatmentStatusId()
        {
            return treatmentStatusId;
        }

        public void setTreatmentStatusId(int treatmentStatusId)
        {
            this.treatmentStatusId = treatmentStatusId;
        }

        public string getSymptom()
        {
            return symptom;
        }

        public void setSymptom(string symptom)
        {
            this.symptom = symptom;
        }

        public int getDiagnosisId()
        {
            return diagnosisId;
        }

        public void setDiagnosisId(int diagnosis)
        {
            this.diagnosisId = diagnosis;
        }

        public string getAdvice()
        {
            return advice;
        }

        public void setAdvice(string advice)
        {
            this.advice = advice;
        }

        public int getDayOfUsingMedicine()
        {
            return dayOfUsingMedicine;
        }

        public void setDayOfUsingMedicine(int dayOfUsingMedicine)
        {
            this.dayOfUsingMedicine = dayOfUsingMedicine;
        }

        public int getWorkerId()
        {
            return workerId;
        }

        public void setWorkerId(int workerId)
        {
            this.workerId = workerId;
        }

        public int getTreatmentCost()
        {
            return treatmentCost;
        }

        public void setTreatmentCost(int treatmentCost)
        {
            this.treatmentCost = treatmentCost;
        }

        public int getMedicineCost()
        {
            return medicineCost;
        }

        public void setMedicineCost(int medicineCost)
        {
            this.medicineCost = medicineCost;
        }

        public short getPayStatus()
        {
            return payStatus;
        }

        public void setPayStatus(short payStatus)
        {
            this.payStatus = payStatus;
        }

        public CMDateTime getDateOfReTreatment()
        {
            return dateOfReTreatment;
        }

        public void setDateOfReTreatment(CMDateTime dateOfReTreatment)
        {
            this.dateOfReTreatment = dateOfReTreatment;
        }

    }
}
